//package com.ag.answergames.controller;
//
//
//import com.ag.answergames.service.wallet.ChildBalanceService;
//import com.ag.answergames.vo.ChildAccountVO;
//import com.ag.answergames.vo.common.Result;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * @author: aoaowu
// * @description: 小孩零钱罐余额相关的controller
// * @date: 2023/04/17 11:29
// */
//@RestController
//@RequestMapping("/back/child")
//@Api(value = "/child", description = "小孩账户的相关api操作")
//public class ChildBalanceController {
//    @Autowired
//    ChildBalanceService childBalanceService;
//
//    @PostMapping(value = "find/balance")
//    @ApiOperation(value = "查看小孩零钱罐的余额")
//    public Result<ChildAccountVO> find(@RequestParam String openId) {
//        Result result = childBalanceService.find(openId);
//        return result;
//    }
//
//
//    @PostMapping(value = "update/balance")
//    @ApiOperation(value = "小孩零钱的获取")
//    public Result<ChildAccountVO> update(@RequestParam Long money,@RequestParam String openId) {
//        Result earn = childBalanceService.earn(money, openId);
//        return earn;
//    }
//
//    @PostMapping(value = "withdraw/balance")
//    @ApiOperation(value = "小孩存钱罐的提现")
//    public Result<ChildAccountVO> withdraw(@RequestParam Long money,@RequestParam String openId) {
//        return null;
//    }
//
//
//
//
//}
